package com.study.designPattern.create.factory;

import com.study.designPattern.structure.proxy.Car;

/**
 * @author ysy
 * @version 1.0
 * @Title: FactoryPatternTest
 * @Note <b>ProjectName:</b> Pre-research
 * <br><b>PackageName:</b> com.study.designPattern.create.factory
 * <br><b>ClassName:</b>
 * <br><b>Date:</b>

 */
public class FactoryPatternTest {
    public static void main(String[] args) {
        CarFactory carFactory = new CarFactory();

        ICar benz = carFactory.getCar("Benz");
        benz.run();

        ICar honda = carFactory.getCar("Honda");
        honda.run();
    }
}
